// 专业选择
import {
	postHttp,
	getHttp
} from "@/uview-ui/http.js";

// 专业科目查询
export function getMajor(data) {
	// return getHttp('/resources/major/wdResourcesMajor/list')
	return getHttp('/resources/major/wdResourcesMajor/list?appId=' + data)
}

// 专业科目查询
export function newList() {
	return getHttp('/resources/major/wdResourcesMajor/newList')
}


// 题干查询分页列表查询 chapterId和templateId为章节模板二级查询对应字段
export function SubjectList(data) {
	return getHttp('/chapter/wdQuestionChapterSubject/list', data)
}

// 题干查询分页列表查询 chapterId和templateId为章节模板二级查询对应字段
export function SubjectQueryById(data) {
	return getHttp('/chapter/wdQuestionChapterSubject/queryBySubjectId', data)
}

// 答题或修改答题(公用)
export function answerAll(data) {
	return postHttp('/questionbank/practice/answerAll', data)
}

// 评分(公用)
export function practiceCheck(data) {
	return postHttp('/questionbank/practice/check', data)
}

// 重新答题(公用)
export function practiceAgain(data) {
	return postHttp('/questionbank/practice/again', data)
}
